import { defineStore } from 'pinia'

const useUserStore = defineStore('user', {
  state: () => ({
    userinfo: null,
  }),
  actions: {
    setUserinfo(data: any) {
      this.userinfo = data
    },
  },
})

export default useUserStore
